package com.mvity.framework.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mvity.framework.common.base.BaseEntity;

/**
 * 系统日志表
 * 
 * @author vity
 * @date 2012-5-10
 * @mail vity.1215@gmail.com
 */
@Entity
@Table(name = "system_log")
public class SystemLog extends BaseEntity {

	private static final long serialVersionUID = 26511560941680907L;

	/**
	 * 动作
	 */
	@Column(name = "log_action", length = 100, nullable = false)
	private String logAction;

	/**
	 * 类型
	 */
	@Column(name = "log_type", length = 20, nullable = false)
	private String logType;

	/**
	 * 来源
	 */
	@Column(name = "log_source", length = 1000, nullable = false)
	private String logSource;

	/**
	 * 结果
	 */
	@Column(name = "log_result", length = 100, nullable = false)
	private String logResult;

	/**
	 * 自定义内容
	 */
	@Column(name = "log_content", length = 4000)
	private String logContent;

	/**
	 * 请求IP
	 */
	@Column(name = "log_operating_ip", length = 50)
	private String logOperatingIP;

	/**
	 * @return the logAction
	 */
	public String getLogAction() {
		return logAction;
	}

	/**
	 * @param logAction
	 *            the logAction to set
	 */
	public void setLogAction(String logAction) {
		this.logAction = logAction;
	}

	/**
	 * @return the logType
	 */
	public String getLogType() {
		return logType;
	}

	/**
	 * @param logType
	 *            the logType to set
	 */
	public void setLogType(String logType) {
		this.logType = logType;
	}

	/**
	 * @return the logSource
	 */
	public String getLogSource() {
		return logSource;
	}

	/**
	 * @param logSource
	 *            the logSource to set
	 */
	public void setLogSource(String logSource) {
		this.logSource = logSource;
	}

	/**
	 * @return the logResult
	 */
	public String getLogResult() {
		return logResult;
	}

	/**
	 * @param logResult
	 *            the logResult to set
	 */
	public void setLogResult(String logResult) {
		this.logResult = logResult;
	}

	/**
	 * @return the logContent
	 */
	public String getLogContent() {
		return logContent;
	}

	/**
	 * @param logContent
	 *            the logContent to set
	 */
	public void setLogContent(String logContent) {
		this.logContent = logContent;
	}

	/**
	 * @return the logOperatingIP
	 */
	public String getLogOperatingIP() {
		return logOperatingIP;
	}

	/**
	 * @param logOperatingIP
	 *            the logOperatingIP to set
	 */
	public void setLogOperatingIP(String logOperatingIP) {
		this.logOperatingIP = logOperatingIP;
	}

}
